package com.ruoyi.cm.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 其他计量详情业务对象 cm_ba_settle_deduct_detail
 *
 * @author zyb
 * @date 2024-09-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CmBaSettleDeductDetailBo extends BaseEntity {

    /**
     * 计量单主表ID
     */
//    @NotNull(message = "计量单主表ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long settleId;
    private Long bdId;
    private Long zdId;
    private Long qsId;

    /**
     * 详细项ID
     */
//    @NotNull(message = "详细项ID不能为空", groups = { EditGroup.class })
    private Long deductDetailId;

    /**
     * 款项类型
     */
    @NotBlank(message = "款项类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deductType;

    /**
     * 款项金额
     */
    @NotNull(message = "款项金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal deductDetailMoney;

    /**
     * 款项备注
     */
//    @NotBlank(message = "款项备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    private String fileNo;

    //附件编号
    private Set<Long> fileNos;

    private Set<Long> fileNoOld;

    /**
     * 款项时间
     */
//    @NotNull(message = "款项时间不能为空", groups = { AddGroup.class, EditGroup.class })
        @JsonFormat(pattern = "yyyy-MM-dd")
        @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deductTime;


}
